<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo $title_for_layout; ?> - <?php echo __('AIH'); ?></title>
        <?php
        echo $this->Html->css(array(
            'reset',
            '960',
            '/ui-themes/smoothness/jquery-ui.css',
//            'admin',
            'thickbox',
            '/aih/reset.css',
            '/aih/Aihre.css',
            '/aih/common.css',
            '/aih/esstyle.css',
            '/aih/jquery.qtip.min.css',
//            '/aih/validationEngine.jquery.css',
        ));
        ?>
        <style type="">
            table.servicesT
            { font-family: Verdana;
              font-weight: normal;
              font-size: 11px;
              color: #404040;
              width: 420px;
              background-color: #fafafa;
              border: 1px #6699CC solid;
              border-collapse: collapse;
              border-spacing: 0px;
              margin-top: 0px;}

            table.servicesT td.servHd
            { border-bottom: 2px solid #6699CC;
              background-color: #BEC8D1;
              text-align: center;
              font-family: Verdana;
              font-weight: bold;
              font-size: 11px;
              color: #404040;}

            table.servicesT td
            { border-bottom: 1px dotted #6699CC;
              font-family: Verdana, sans-serif, Arial;
              font-weight: normal;
              font-size: 11px;
              color: #404040;
              background-color: white;
              text-align: left;
              padding-left: 3px;}

            .servBodL { border-left: 1px dotted #CEDCEA; }
        </style>
        <?php
        echo $this->Layout->js();
        echo $this->Html->script(array(
            'jquery/jquery.min',
//            'jquery/jquery',
            'jquery/jquery-ui.min',
            'jquery/jquery.slug',
            'jquery/jquery.uuid',
            'jquery/jquery.cookie',
            'jquery/jquery.hoverIntent.minified',
            'jquery/superfish',
            'jquery/supersubs',
            'jquery/jquery.tipsy',
            'jquery/jquery.elastic-1.6.1.js',
            'jquery/thickbox-compressed',
            'jquery/jquery.windowmsg-1.0.js',
            'jquery/jquery.formatCurrency-1.4.0.js',
            'jquery/jquery.formatCurrency.all.js',
            'jquery/jquery.validate.js',
            'jquery/jquery.highlight-3.js',
            'jquery/jquery.scrollTo-min.js',
            'jquery/jquery.qtip.min.js',
//            'jquery/jquery.validationEngine-en.js',
//            'jquery/jquery.validationEngine.js',
            'admin',
        ));
        echo $scripts_for_layout;
        ?>
        <script type="text/javascript">
            //<![CDATA[
            $(function() {
                $('a[rel="alert"]').click( function() {
                    window.open($(this).attr('href'), 'child', 'modal,width=440,height=440,scrollbars=yes');
                    return false;
                });
            });
            //]]>
        </script>
    </head>

    <body>
        <div id="wrapper">
            <!-- HTML-Header-->
            <div class="header clearfix">
                <div class="head-logo">
                    <?php echo $this->element('admin/header'); ?>
                    <?php echo $this->Html->image('/img/aih/ARBL FULL Logo Letterhead Footer JPG r.jpg'); ?>
                    <div class="wrapper-menu-bar clearfix">
                        <ul>
                            <?php echo $this->element("admin/navigation"); ?>
                        </ul>
                    </div>
                </div>
                <!-- HTML for menu-bottom-header-->
            </div>
            <!-- HTML-Body-Web-->
            <div class="wrapper-body clearfix">
                <div class="wrapper-content-body clearfix">
                    <?php
                    echo $this->Layout->sessionFlash();
                    echo $content_for_layout;
                    ?>
                </div>
            </div>
            <!-- HTML-Footer-->
            <div class="footer clearfix">
                <div class="wrapper-footer clearfix">
                    <?php echo $this->element('admin/footer'); ?>
                </div>
            </div>
        </div>
        <input type="hidden" id="FormChangeStatus" value="no" />
    </body>
    <script type="text/javascript">
        $(function() {
            $('div.wrapper-menu-bar>ul>li>a').click(function() {
                if($('#FormChangeStatus').val() == "yes"){
                    var confirmExit = confirm('Are you sure you want to leave this page? Because Form has been changed. Click OK to leave or CANCEL to go back and save your changes.');
                    if(confirmExit){
                        return true;
                    }
                    else{
                        return false;
                    }
                }
            });

            $("form").find("input,select,textarea").change(function(){
                if ($("#FormChangeStatus").val() == "no")
                {
                    $("#FormChangeStatus").val("yes");
                }
            });
        });
    </script>
</html>
